package com.example.demo.consumer;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.cloud.netflix.feign.FeignClientsConfiguration;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.example.demo.entity.BaseInBean;

import feign.Param;
import feign.RequestLine;

@FeignClient(value="XHF-ADDRESS" ,configuration=FeignClientsConfiguration.class)
public interface AddressProvider {

	@RequestLine("POST /api/address/{serviceName}")
	String invoke(@Param("serviceName") String serviceName ,BaseInBean baseInBean);
}
